package com.louis.iread.event;

/**
 * Created by louis on 17-11-1.
 */

public class ReadEvent {
    private EventType mType = EventType.NONE;
    private String mMsg = "";
    private int mValue = -1;
    private Object mObj = null;
    public ReadEvent(EventType type, String msg) {
        mType = type;
        mMsg = msg;
    }

    public ReadEvent(EventType type) {
        mType = type;
    }

    public ReadEvent(EventType type, int value) {
        mType = type;
        mValue = value;
    }

    public ReadEvent(EventType type,  Object obj) {
        mType = type;
        mObj = obj;
    }

    public EventType getEventType() {
        return mType;
    }

    public String getMsg() {
        return mMsg;
    }

    public int getValue() {
        return mValue;
    }

    public Object getObj() {
        return mObj;
    }
}
